package com.winter.main.utils;

import java.util.UUID;

/**
 * Desc: 获取随机数
 * Author: dushuang
 * Date: Create in 2018/5/2
 */
public class UidUtil {

    public static String getRandomUid(int length){
        String uuid = UUID.randomUUID().toString().replaceAll("-","").substring(0,length);
        return uuid;
    }
}
